package com.yxjwzpx.management.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 维修成本对象 repair_cost
 * 
 * @author yxjwzpx
 * @date 2025-04-09
 */
public class RepairCost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修成本ID */
    private Long costId;

    /** 关联的船舶类型ID */
    @Excel(name = "关联的船舶类型ID")
    private Long typeId;

    /** 关联的故障类型ID */
    @Excel(name = "关联的故障类型ID")
    private Long faultTypeId;

    /** 维修费用（单位：元） */
    @Excel(name = "维修费用")
    private BigDecimal cost;

    /** 维修费用描述 */
    @Excel(name = "维修费用描述")
    private String description;

    public void setCostId(Long costId) 
    {
        this.costId = costId;
    }

    public Long getCostId() 
    {
        return costId;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setFaultTypeId(Long faultTypeId) 
    {
        this.faultTypeId = faultTypeId;
    }

    public Long getFaultTypeId() 
    {
        return faultTypeId;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("costId", getCostId())
            .append("typeId", getTypeId())
            .append("faultTypeId", getFaultTypeId())
            .append("cost", getCost())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
